package com.challenger.admin.services.impl;

import java.util.List;

import com.challenger.admin.dao.UserDao;
import com.challenger.admin.entity.User;
import com.challenger.admin.services.UserService;

public class UserServiceImpl implements UserService {

	private UserDao userDao;
	
	@Override
	public int insertUser(User user) {
		return userDao.insertUser(user);
	}

	@Override
	public User queryUserByNo(User user) {
		return userDao.queryUserByNo(user);
	}

	@Override
	public int updateUser(User user) {
		return userDao.updateUser(user);
	}

	@Override
	public List<User> queryAllUser() {
		return userDao.queryAllUser();
	}

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

}
